/*
 * Bitmap.h
 *
 *  Created on: 15.08.2012
 *      Author: Axel
 */

#ifndef BITMAP_H_
#define BITMAP_H_


#include <windows.h>
#include <string>
using namespace std;

class Bitmap {
public:
	BYTE* pRGB;
	BITMAPINFO bmi;

	void refreshFromHDC(HDC hdcMem, HBITMAP hbm);
	void refresh(BYTE* colors, BITMAPINFO bitmapinfo);

	void printPixel(int x, int y);
	RGBTRIPLE getPixel(int x, int y);
	void setPixel(int x, int y);
	void writeBitmap(string path);

	Bitmap();
	Bitmap(BYTE* colors, BITMAPINFO bitmapinfo);
	Bitmap(BITMAPINFO bitmapinfo);
	Bitmap(const Bitmap& bmp);


	virtual ~Bitmap();
};

#endif /* BITMAP_H_ */
